import request from '@/utils/request'
/* 活动管理*/

// 获取门槛
export function getThreshold() {
  return request({
    url: '/activityCustoms/getThreshold',
    method: 'post'
  })
}
// 保存门槛
export function setThreshold(data) {
  return request({
    url: '/activityCustoms/setThreshold',
    method: 'post',
    data
  })
}

// 添加活动
export function saveActivity(data) {
  return request({
    url: '/activityCustoms/save',
    method: 'post',
    data
  })
}

// getlist
export function listData(data) {
  return request({
    url: 'activityCustoms/listData',
    method: 'post',
    data
  })
}

// 修改活动信息及开关
export function updateActivity(data) {
  return request({
    url: 'activityCustoms/update',
    method: 'post',
    data
  })
}

// 删除活动
export function deleteActivity(data) {
  return request({
    url: '/activityCustoms/delete',
    method: 'post',
    data
  })
}

// 活动档位排序 sort
export function SetSort(data) {
  return request({
    url: '/activityCustoms/updateSort',
    method: 'post',
    data
  })
}

/* 关卡管理*/

// get
export function levelList(data) {
  return request({
    url: '/customsPass/getListData',
    method: 'post',
    data
  })
}

// add
export function saveCustom(data) {
  return request({
    url: '/customsPass/saveCustomsPass',
    method: 'post',
    data
  })
}

// delete/
export function deleteCustom(data) {
  return request({
    url: '/customsPass/delete',
    method: 'post',
    data
  })
}

// update
export function updateCustom(data) {
  return request({
    url: 'customsPass/update',
    method: 'post',
    data
  })
}

// get item info
export function selectById(data) {
  return request({
    url: '/customsPass/selectById',
    method: 'post',
    data
  })
}

// 添加箱子
export function addBoxMsg(data) {
  return request({
    url: '/CustomsPassBoxMsg/save',
    method: 'post',
    data
  })
}

// update box
export function updateBoxMsg(data) {
  return request({
    url: '/CustomsPassBoxMsg/update',
    method: 'post',
    data
  })
}

// delete box
export function deleteBoxMsg(data) {
  return request({
    url: '/CustomsPassBoxMsg/delete',
    method: 'post',
    data
  })
}

// sort
export function updateSort(data) {
  return request({
    url: '/CustomsPassBoxMsg/updateSort',
    method: 'post',
    data
  })
}

// 鼓励 add
export function setGoodsList(data) {
  return request({
    url: '/customsPass/setGoodsList',
    method: 'post',
    data
  })
}
// 鼓励 回显
export function selByCustomsPass(data) {
  return request({
    url: '/customsPass/selByCustomsPass',
    method: 'post',
    data
  })
}

// 列表查询
export function ListToConfirmData(data) {
  return request({
    url: '/toConfirm/ListToConfirmData',
    method: 'post',
    data
  })
}

// 房间详情
export function toConfirmDetails(data) {
  return request({
    url: '/toConfirm/toConfirmDetails',
    method: 'post',
    data
  })
}

// 累计获得
export function sumToObtain(data) {
  return request({
    url: '/toConfirm/sumToObtain',
    method: 'post',
    data
  })
}

// 闯关记录总和
export function sumPrice(data) {
  return request({
    url: '/toConfirm/sumPrice',
    method: 'post',
    data
  })
}

// 开箱记录list
export function checkpointPlayOut(data) {
  return request({
    url: '/toConfirm/checkpointPlayOut',
    method: 'post',
    data
  })
}

// 开箱记录总和
export function sumPricePlayOut(data) {
  return request({
    url: '/toConfirm/sumPricePlayOut',
    method: 'post',
    data
  })
}

// 全部活动
export function select(data) {
  return request({
    url: '/activityCustoms/selectAll',
    method: 'post',
    data
  })
}

// 关卡下拉检索
export function customsPass(data) {
  return request({
    url: '/toConfirm/customsPass',
    method: 'post',
    data
  })
}

// 加赛 set
export function setFalseMatch(data) {
  return request({
    url: '/customsPass/setFalseMatch',
    method: 'post',
    data
  })
}

// 加赛 get
export function getFalseMatch(data) {
  return request({
    url: '/customsPass/getFalseMatch',
    method: 'post',
    data
  })
}

// 玩法介绍 set
export function setToConfirmDescribe(data) {
  return request({
    url: '/toConfirm/setToConfirmDescribe',
    method: 'post',
    data
  })
}

// 玩法介绍 get
export function getToConfirmDescribe(data) {
  return request({
    url: '/toConfirm/getToConfirmDescribe',
    method: 'post',
    data
  })
}

// 排行榜 get
export function getListData(data) {
  return request({
    url: '/toConfirmRanking/listData',
    method: 'post',
    data
  })
}
// 排行榜 save
export function saveListData(data) {
  return request({
    url: '/toConfirmRanking/save',
    method: 'post',
    data
  })
}
// 排行榜 delete
export function deleteListData(data) {
  return request({
    url: '/toConfirmRanking/delete',
    method: 'post',
    data
  })
}
// 排行榜 update
export function updateListData(data) {
  return request({
    url: '/toConfirmRanking/update',
    method: 'post',
    data
  })
}

// 排行榜 recordListData
export function recordListData(data) {
  return request({
    url: '/toConfirmRanking/recordListData',
    method: 'post',
    data
  })
}
// 排行榜 saveRanking
export function saveRanking(data) {
  return request({
    url: '/toConfirmRanking/saveRanking',
    method: 'post',
    data
  })
}
// 排行榜 update
export function updateRanking(data) {
  return request({
    url: '/toConfirmRanking/updateRanking',
    method: 'post',
    data
  })
}
// 排行榜 update
export function deleteRanking(data) {
  return request({
    url: '/toConfirmRanking/deleteRanking',
    method: 'post',
    data
  })
}

// 排行榜 玩法介绍设置
export function setToConfirmRankingDescribe(data) {
  return request({
    url: '/toConfirm/setToConfirmRankingDescribe',
    method: 'post',
    data
  })
}

// 排行榜 玩法介绍获取
export function getToConfirmRankingDescribe(data) {
  return request({
    url: '/toConfirm/getToConfirmRankingDescribe',
    method: 'post',
    data
  })
}

